Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Enrich /me endpoint with user roles #2224

Merged
merged 10 commits into from
Sep 20, 2023

Conversation

DafyddLlyr
Copy link
Contributor

What does this PR do?

  • Adds user roles data to /me, makes this accessible to all logged in users
  • Moves /me and / (healthcheck) to a "misc" module in the API

@github-actions
Copy link

github-actions bot commented Sep 19, 2023

Removed vultr server and associated DNS entries

items:
type: object
properties:
teamId:
Copy link
Member

@jessicamcinchak jessicamcinchak Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: it'd be super handy to have the teamSlug exposed here in addition to teamId - as I think we can then call this endpoint from the editor for signed-in users to populate their user menu in a meaningful way? Have an outdated wip version of this over here: https://github.com/theopensystemslab/planx-new/pull/2214/files#diff-a23b8e0cdc75fc858dc3a73983f67d257f78158596c37832202cf963efcf0a6aR267

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On it!

@DafyddLlyr
Copy link
Contributor Author

Blocked by #2226

@DafyddLlyr DafyddLlyr marked this pull request as ready for review September 20, 2023 19:34
@DafyddLlyr DafyddLlyr merged commit cf780b1 into dp/use-api-context Sep 20, 2023
10 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/me-api-endpoint branch September 20, 2023 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants